<?php
/*
	微信挪车用户端后台菜单
*/
defined('BY_JYA') or exit('error');
if($_SESSION['role_id']==1){
	$menus=array(
		array('title'=>'分校管理','icon'=>'fa-home','url'=>'jy_kexie/area.index/','child'=>array(
			array('title'=>'分校管理','child'=>array(
				array('url'=>'jy_kexie/area.index/','title'=>'分校管理'),
			)),
		)),
		array('title'=>'我的信息','icon'=>'fa-home','url'=>'jy_kexie/area.area_user/','child'=>array(
			array('title'=>'我的信息','child'=>array(
				array('url'=>'jy_kexie/area.area_user/','title'=>'我的信息'),
			)),
		)),
		array('title'=>'排课管理','icon'=>'fa-home','url'=>'jy_kexie/area.lesson_pai/','child'=>array(
			array('title'=>'排课管理','child'=>array(
				array('url'=>'jy_kexie/area.lesson_pai/','title'=>'排课管理'),
			)),
		)),
		/*array('title'=>'教师管理','icon'=>'fa-home','url'=>'jy_kexie/area.worker/','child'=>array(
			array('title'=>'教师管理','child'=>array(
				array('url'=>'jy_kexie/area.worker/','title'=>'教师管理'),
			)),
		)),*/
		array('title'=>'签到管理','icon'=>'fa-home','url'=>'jy_kexie/area.sign//type=1','child'=>array(
			array('title'=>'签到管理','child'=>array(
				array('url'=>'jy_kexie/area.sign//type=1','title'=>'老师签到'),
				array('url'=>'jy_kexie/area.sign//type=0','title'=>'学生签到'),
				
			)),
		)),
		array('title'=>'评价管理','icon'=>'fa-home','url'=>'jy_kexie/area.comment//type=0','child'=>array(
			array('title'=>'评价管理','child'=>array(
				array('url'=>'jy_kexie/area.comment//type=0','title'=>'学生评价教师'),
				array('url'=>'jy_kexie/area.comment//type=1','title'=>'教师评价学校'),
			)),
		)),
	);
}
if($_SESSION['role_id']==2){
	$menus=array(
		array('title'=>'分校管理','icon'=>'fa-home','url'=>'jy_kexie/store.index/','child'=>array(
			array('title'=>'分校管理','child'=>array(
				array('url'=>'jy_kexie/store.index/','title'=>'分校管理'),
			)),
		)),
		array('title'=>'排课管理','icon'=>'fa-home','url'=>'jy_kexie/store.lesson_pai/','child'=>array(
			array('title'=>'排课管理','child'=>array(
				array('url'=>'jy_kexie/store.lesson_pai/','title'=>'排课管理'),
			)),
		)),
		array('title'=>'学生管理','icon'=>'fa-home','url'=>'jy_kexie/store.user/','child'=>array(
			array('title'=>'学生管理','child'=>array(
				array('url'=>'jy_kexie/store.user/','title'=>'学生管理'),
			)),
		)),
		array('title'=>'签到管理','icon'=>'fa-home','url'=>'jy_kexie/store.sign//type=1','child'=>array(
			array('title'=>'签到管理','child'=>array(
				array('url'=>'jy_kexie/store.sign//type=1','title'=>'老师签到'),
				array('url'=>'jy_kexie/store.sign//type=0','title'=>'学生签到'),
				
			)),
		)),
		array('title'=>'评价管理','icon'=>'fa-home','url'=>'jy_kexie/store.comment//type=0','child'=>array(
			array('title'=>'评价管理','child'=>array(
				array('url'=>'jy_kexie/store.comment//type=0','title'=>'学生评价教师'),
				array('url'=>'jy_kexie/store.comment//type=1','title'=>'教师评价学校'),
			)),
		)),
	);
}
if($_SESSION['role_id']==3){
	$menus=array(
		array('title'=>'教师管理','icon'=>'fa-home','url'=>'jy_kexie/worker.index/','child'=>array(
			array('title'=>'教师管理','child'=>array(
				array('url'=>'jy_kexie/worker.index/','title'=>'教师管理'),
			)),
		)),
		array('title'=>'排课管理','icon'=>'fa-home','url'=>'jy_kexie/worker.lesson_pai/','child'=>array(
			array('title'=>'排课管理','child'=>array(
				array('url'=>'jy_kexie/worker.lesson_pai/','title'=>'排课管理'),
				array('url'=>'jy_kexie/worker.lesson/','title'=>'我的课程'),
			)),
		)),
	);
}
if($_SESSION['role_id']==4){
	$menus=array(
		array('title'=>'我的信息','icon'=>'fa-home','url'=>'jy_kexie/project.index/','child'=>array(
			array('title'=>'我的信息','child'=>array(
				array('url'=>'jy_kexie/project.index/','title'=>'我的信息'),
			)),
		)),
		array('title'=>'审核项目','icon'=>'fa-home','url'=>'jy_kexie/project.project/','child'=>array(
			array('title'=>'审核项目','child'=>array(
				array('url'=>'jy_kexie/project.project/','title'=>'审核项目'),
			)),
		)),
	);
}
if($_SESSION['role_id']==5){
	$menus=array(
		array('title'=>'我的信息','icon'=>'fa-home','url'=>'jy_kexie/gongsi.index/','child'=>array(
			array('title'=>'我的信息','child'=>array(
				array('url'=>'jy_kexie/gongsi.index/','title'=>'我的信息'),
			)),
		)),
		array('title'=>'我的项目','icon'=>'fa-home','url'=>'jy_kexie/gongsi.project/','child'=>array(
			array('title'=>'我的项目','child'=>array(
				array('url'=>'jy_kexie/gongsi.project/','title'=>'我的项目'),
			)),
		)),
	);
}
if($_SESSION['role_id']==-1){
	$menus=array(
		array('title'=>'科普内容','icon'=>'fa-home','url'=>'jy_kexie/manage.video/','child'=>array(
			array('title'=>'科普内容','child'=>array(
				array('url'=>'jy_kexie/manage.video/','title'=>'科普视频'),
				array('url'=>'jy_kexie/manage.news/','title'=>'科普知识'),
				array('url'=>'jy_kexie/manage.video_group/','title'=>'科普分类'),
			)),
		)),
		array('title'=>'站内新闻','icon'=>'fa-home','url'=>'jy_kexie/manage.article_list/','child'=>array(
			array('title'=>'站内新闻','child'=>array(
				array('url'=>'jy_kexie/manage.article_list/','title'=>'新闻管理'),
				array('url'=>'jy_kexie/manage.article_fenlei/','title'=>'新闻分类'),
			)),
		)),
	);
}
return $menus;